flutter rotate image

92

// This example rotates an orange box containing text around its center by fifteen degrees
Transform.rotate(
  angle: -math.pi / 12.0,
  child: Container(
    padding: const EdgeInsets.all(8.0),
    color: const Color(0xFFE8581C),
    child: const Text('Apartment for rent!'),
  ),
)
RotatedBox(
            quarterTurns:3,
            child: Text('Hello World!'),
          ),
new RotationTransition(
  turns: new AlwaysStoppedAnimation(15 / 360),
  child: new Text("Lorem ipsum"),
)

Comments

Submit
0 Comments